function go_word(word_id) { 
	var dataStr = 'word_id='+escape(word_id); 
	return load_content("content/word.php", "POST", dataStr);
}

function add_word() {
	return load_content("script/word/add_word.php", "POST", "");
}

function edit_word() {
	var new_word = prompt("Edit word", "");
	if(new_word) {
		var dataStr = 'new_word='+(new_word);
		return load_content("script/word/edit_word.php", "POST", dataStr);
	}
	return 0;
}

function edit_word_reading() {
	var new_reading = prompt("Edit word's reading", "");
	if(new_reading) {
		var dataStr = 'new_reading='+(new_reading);
		return load_content("script/word/edit_word_reading.php", "POST", dataStr);
	}
	return 0;
}

function edit_word_meaning() {
	var new_meaning = prompt("Edit word's meaning", "");
	if(new_meaning) {
		var dataStr = 'new_meaning='+(new_meaning);
		return load_content("script/word/edit_word_meaning.php", "POST", dataStr);
	}
	return 0;
}

function delete_word() {
	var answer = confirm("Are you sure to delete this word?")
	if (answer) {
		return load_content("script/word/delete_word.php", "POST", "");
	}
	return false;
}